package com.xiashitech.agent.service.facade;

import com.xiashitech.agent.grpc.XsConfigClient;
import com.xiashitech.interfaces.agent.constants.AgentStatus;

import java.util.function.Consumer;

/**
 * agent客户端的grpc实现
 */
class GrpcClient implements XSClient {

    @Override
    public String syncConfig(Consumer<String> respHandler) {
        XsConfigClient.getClient().grpcSyncConfig();
        // XsConfigClient.getClient().grpcSyncConfig(respHandler);
        return null;
    }

    @Override
    public String getSystemInfo(Consumer<String> respHandler) {
        return null;
    }

    @Override
    public String syncAgentStatus(AgentStatus agentStatus, Consumer<String> respHandler) {
        return null;
    }

    @Override
    public String syncAgentHost(String host, Consumer<String> respHandler) {
        return null;
    }

    @Override
    public String updateCacheStatus(Consumer<String> respHandler) {
        return null;
    }

}
